<?php
namespace app\models;
use Yii;

class Tool
{
	public static function Category()
	{
		$connection = Yii::$app->db;
		$query = $connection->createCommand("SELECT id,name FROM tbl_category")->queryAll();
		return $query;
	} 
	public static function Group()
	{
		$connection = Yii::$app->db;
		$query = $connection->createCommand("SELECT * FROM tbl_group")->queryAll();
		return $query;
	}
}